package VN.EDU.IMIC.DEVELOPER.TRANTHITHANHNGA.EXAM01.TASK1;

import java.util.Scanner;

public class Rectangle_Views {

	public static void main(String[] args) {
		Scanner in = new Scanner(System.in);
		System.out.println("+input width: ");
		double width = in.nextDouble();
		System.out.println("+input height: ");
		double height = in.nextDouble();

		Object obj = new Rectangle_Entity();
		Rectangle_Entity Obj = (Rectangle_Entity) obj;
		Obj.setWidth(width);
		Obj.setHeight(height);

		Rectangle_Controllers cObj = new Rectangle_Controllers(Obj);
		System.out.println("+Area: " + cObj.getArea(Obj));
		System.out.println("+Perimeter: " + cObj.getPerimeter(Obj));
	}

}
